import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class Test11 extends StatefulWidget {
  @override
  _Test11State createState() => _Test11State();
}

class _Test11State extends State<Test11> {
  RangeValues values = RangeValues(20, 50);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Center(
        child: Column(
          children: [
            RangeSlider(
                min: 0,
                max: 100,
                values: values,
                onChanged: (v) {
                  setState(() {
                    values = v;
                  });
                })
          ],
        ),
      ),
    );
  }
}
